# encoding: utf-8

from django.db import models


STATUS = (
    ('1', u'未读'),
    ('2', u'已读')
)


class Message(models.Model):
    subject = models.CharField(u'主题', max_length=1000)
    text = models.TextField(u'正文')
    create_time = models.DateTimeField(auto_now_add=True)


class UserMessage(models.Model):
    user = models.CharField(u'用户', max_length=100)
    message = models.ForeignKey(Message)
    status = models.CharField(u'状态', max_length=10)
    showed = models.BooleanField(u'是否提醒', default=False)